#!/usr/bin/python
# -*- coding:utf-8 -*-
# @FileName : python_test11_1.py
# Author    : myh
def get_formatted_name(first, last, middle=''):
    """生成格式规范的姓名"""
    if middle:
        full_name = f"{first} {middle} {last}"
        return full_name.title()
    else:
        full_name = f"{first} {last}"
        return full_name.title()


